<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>QRCode Example</title>
    <script src="https://cdn.jsdelivr.net/npm/qrcodejs2"></script>
</head>
<body>
    <div id="qrcode"></div>

    <script>
    new QRCode(document.getElementById("qrcode"), {
        text: "这是一个二维码的文本内容",
        width: 128,
        height: 128,
        colorDark : "#000000",
        colorLight : "#ffffff",
        correctLevel : QRCode.CorrectLevel.H
    });
    </script>
</body>
</html>
